package com.bicycle.rentalsystem.service.impl.user;

import com.bicycle.rentalsystem.dao.user.UserMessageDao;
import com.bicycle.rentalsystem.dao.impl.user.UserMessageDaoImpl;
import com.bicycle.rentalsystem.pojo.user.UserMessage;
import com.bicycle.rentalsystem.service.user.UserMessageService;

import java.util.List;

public class UserMessageServiceImpl implements UserMessageService {

    private UserMessageDao userMessageDao = new UserMessageDaoImpl();

    @Override
    public UserMessage getMessage(String username) {
        return userMessageDao.getMessage(username);
    }

    @Override
    public int returnMessage(String username) {
        return userMessageDao.returnMessage(username);
    }

    @Override
    public int returnPassword(String password) {
        return userMessageDao.returnPassword(password);
    }
}
